<?php
/**
 * ============================================================================
 * Copyright (c) 2015-2018 贵州大师兄信息技术有限公司 All rights reserved.
 * siteַ: http://www.dsxcms.com
 * ============================================================================
 * @author:     David Song<songdewei@163.com>
 * @version:    v1.0.0
 * ---------------------------------------------
 * Date: 2018/11/15
 * Time: 11:27 AM
 */

namespace App\Library\KdNiao\Request;


class KdPrintOrderRequest extends KdRequest
{
    protected $params = [];

    public function setOrders($orders)
    {
        $this->params = $orders;
    }

    /**
     * @param $OrderCode string 需要打印的订单号，和调用快递鸟电子面单的订单号一致，
     * @param $PortName string 本地打印机名称，请参考使用手册设置打印机名称。支持多打印机同时打印。
     */
    public function addOrder($OrderCode, $PortName)
    {
        $this->params[] = compact('OrderCode', 'PortName');
    }
}
